#include<stdio.h>
int main()
{
	int a,b,c;
	scanf("%d %d %d",&a,&b,&c); 
	int S,V;
	S=(a*b)*2+(a*c)*2+(b*c)*2;
	V=(a*b*c);
	printf("%d\n%d",S,V);
	return 0;
}
